package com.sikaryofficial.system.controller;

import com.sikaryofficial.common.core.web.controller.BaseController;
import com.sikaryofficial.common.core.web.domain.AjaxResult;
import com.sikaryofficial.system.domain.dto.UserNoticeReq;
import com.sikaryofficial.system.manager.SysNoticeManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公告 信息操作处理
 *
 * @author qinjinyuan
 */
@RestController
@RequestMapping("/notice/api")
public class SysNoticeApiController extends BaseController {

    @Autowired
    private SysNoticeManager sysNoticeManager;

    /**
     * 获取用户通知公告列表
     */
    @GetMapping("/listUserNotice")
    public AjaxResult listUserNotice(UserNoticeReq req) {
        return success(sysNoticeManager.listUserNotice(req));
    }

}
